import request from "../index";

export default class GoodsRequest {
  // 获取平台信息
  public static getGoods(params) {
    return request({
      url: "/goods",
      params,
      method: "get",
    });
  }

  // 创建平台
  public static addGoods(data) {
    return request({
      url: "/goods",
      data,
      method: "post",
    });
  }

  // 修改平台信息
  public static editPLat(data) {
    return request({
      url: "/goods",
      data,
      method: "put",
    });
  }

  // 删除平台
  public static deletePlat(params) {
    return request({
      url: "/goods",
      params,
      method: "delete",
    });
  }
  // 获取平台列表
  public static getPlatList(params) {
    return request({
      url: "/goods/list",
      params,
      method: "get",
    });
  }
}
